# 1D Hermite程序
import numpy as np
class Mesh:
    def __init__(self, n: int):
        """n为剖分设置

        Args:
            n (int): _description_
        """
        mesh = np.linspace(0, 1, n+1)
        self.mesh = mesh[:]
    

class FE:
    def __init__(self, mesh: Mesh, order: int):
        """有限元空间

        Args:
            mesh (Mesh): 网格
            order (int): 有限元空间的阶数
        """
        self.mesh = mesh


# test
if __name__ == "__main__":
    mesh = Mesh(10)
    print(mesh.mesh)